package com.qijian.maindata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qijian.maindata.domain.LedgerAreaDetail;
import com.qijian.maindata.domain.dto.LedgerStatisticsDTO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author qijian
 * @date 2024-02-01
 */
public interface LedgerAreaDetailMapper extends BaseMapper<LedgerAreaDetail> {

    @Select("select count(0) from main_equipment_ledger_detail WHERE create_time >= CURRENT_DATE ")
    int countCurrentDateWithDel();


    List<LedgerStatisticsDTO> getLedgerStatistics();

    LedgerAreaDetail getFirst(@Param(value = "areaIds") List<Long> areaIds);
}
